package com.gaoxinfu.demo.mongodb;

import lombok.Data;

/**
 * @Description:
 * @Author: gaoxinfu
 * @Date: 2020-10-22 16:54
 */

@Data
public class Person {

    private String id;

    private String name;

    private Integer age;

    private String sex;

    public Person(String id, String name, Integer age, String sex) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "Person{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                '}';
    }
}
